import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { OldageProductCheckComponent } from './check/check.component';
import { OldageProductDetailComponent } from './detail/detail.component';
import { OldageProductEnclosureComponent } from './enclosure/enclosure.component';
import { InfoComponent } from 'app/pages/oldage-product/modal/info/info.component';

const routes: Routes = [
  {
    path: "check",
    component: OldageProductCheckComponent
  },
  {
    path: "enclosure",
    component: OldageProductEnclosureComponent
  },
  {
    path: ":index/detail/:operate",
    component: OldageProductDetailComponent
  },
  {
    path: ":index/detail/:operate/:nFundNo",
    component: OldageProductDetailComponent
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OldageProductRoutingModule { }
